<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="style.css" />

    <script src="./src/adapter-latest.js"></script>
</head>
<body>
    <fieldset>
        <legend>设备列表</legend>
        <div class='device-list'>
            <label>audio input device:</label>
            <select id="audioSource"></select>
        </div>
        <div class='device-list'>
            <label>audio output device:</label>
            <select id="audioOutput"></select>
        </div>
        <div class='device-list'>
            <label>video input device:</label>
            <select id="videoSource"></select>
        </div>

        <div class="menus">
            <div class="menu-item">
                <input id="doPlayer" type="button" value="打开媒体设备" />
            </div>
            <div class="menu-item">
                <label>filter:</label>
                <select id="filter">
                    <option value="none">None</option>
                    <option value="blur">blur</option>
                    <option value="grayscale">Grayscale</option>
                    <option value="invert">Invert</option>
                    <option value="sepia">sepia</option>
                </select>
           </div>
           <input id="snapshot" class="menu-item" value="截屏" type="button"/>

           <input id="record" class="menu-item" value="录制" type="button"/>
           <input id="replay" class="menu-item" value="播放" type="button" disabled/>
           <input id="download" class="menu-item" value="下载" type="button" disabled/>
 
           <input id="desktop" class="menu-item" value="录制桌面" type="button" />
        </div>
    </fieldset>

    <div class="wrap">
        <div class="wrap-item">
            <p id="info"></p>
            <p>视频流</p>
            <video id="videoplayer" autoplay playsinline ></video>
            <canvas id="canvas"></canvas>
        </div>
        <div class="wrap-item">
            <p>音频流</p>
            <audio id="audioplayer" controls></audio>
        </div>
        <div class="wrap-item">
            <p>播放录制内容</p>
            <video id="recvideo"></video>
        </div>
    </div>
   

    <script src="./src/index.js"></script>
</body>
</html>